:root {
  /* Kimi 主题色 */
  --kimi-primary: #10a37f;
  --kimi-primary-hover: #0d8c6d;
  --kimi-bg: #ffffff;
  --kimi-sidebar-bg: #f8f9fa;
  --kimi-text-primary: #1f2937;
  --kimi-text-secondary: #6b7280;
  --kimi-border: #e5e7eb;
  --kimi-hover: #f3f4f6;
  --kimi-active: #e5e7eb;
  --kimi-avatar-user: #3b82f6;
  --kimi-avatar-ai: #10a37f;
  --kimi-code-bg: #f8f9fa;
  --kimi-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  font-weight: 400;
  font-size: 14px;

  color-scheme: light;
  color: var(--kimi-text-primary);
  background-color: var(--kimi-bg);

  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--kimi-bg);
}

#app {
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

/* 滚动条样式 - Kimi风格 */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 按钮基础样式 */
button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s ease;
}

/* 输入框样式 */
input, textarea {
  border: none;
  outline: none;
  font-family: inherit;
  background: transparent;
}

/* Markdown 渲染样式 - Kimi风格 */
.message-text :deep(h1) {
  font-size: 1.5em;
  font-weight: 600;
  margin: 1.5em 0 0.5em 0;
  color: var(--kimi-text-primary);
}

.message-text :deep(h2) {
  font-size: 1.3em;
  font-weight: 600;
  margin: 1.2em 0 0.5em 0;
  color: var(--kimi-text-primary);
}

.message-text :deep(h3) {
  font-size: 1.1em;
  font-weight: 600;
  margin: 1em 0 0.5em 0;
  color: var(--kimi-text-primary);
}

.message-text :deep(p) {
  margin: 0.8em 0;
  line-height: 1.7;
}

.message-text :deep(ul), 
.message-text :deep(ol) {
  margin: 0.8em 0;
  padding-left: 1.5em;
}

.message-text :deep(li) {
  margin: 0.4em 0;
  line-height: 1.6;
}

.message-text :deep(blockquote) {
  border-left: 4px solid var(--kimi-primary);
  padding-left: 1em;
  margin: 1em 0;
  color: var(--kimi-text-secondary);
  background: var(--kimi-code-bg);
  padding: 1em;
  border-radius: 8px;
}

.message-text :deep(code) {
  background: var(--kimi-code-bg);
  padding: 0.2em 0.4em;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', 'Consolas', monospace;
  font-size: 0.9em;
  color: #d63384;
}

.message-text :deep(pre) {
  background: var(--kimi-code-bg);
  padding: 1em;
  border-radius: 8px;
  overflow-x: auto;
  margin: 1em 0;
  border: 1px solid var(--kimi-border);
}

.message-text :deep(pre code) {
  background: none;
  padding: 0;
  color: inherit;
}

/* 代码高亮样式 */
.message-text :deep(.hljs) {
  background: transparent !important;
}

.message-text :deep(.hljs-keyword) {
  color: #d73a49;
}

.message-text :deep(.hljs-string) {
  color: #032f62;
}

.message-text :deep(.hljs-number) {
  color: #005cc5;
}

.message-text :deep(.hljs-comment) {
  color: #6a737d;
  font-style: italic;
}

.message-text :deep(.hljs-function) {
  color: #6f42c1;
}

.message-text :deep(.hljs-params) {
  color: #24292e;
}

/* 表格样式 */
.message-text :deep(table) {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}

.message-text :deep(th),
.message-text :deep(td) {
  border: 1px solid var(--kimi-border);
  padding: 0.5em 0.8em;
  text-align: left;
}

.message-text :deep(th) {
  background: var(--kimi-code-bg);
  font-weight: 600;
}

/* 链接样式 */
.message-text :deep(a) {
  color: var(--kimi-primary);
  text-decoration: none;
}

.message-text :deep(a:hover) {
  text-decoration: underline;
}